package Practice05.test3;

public class Bank {
    private static int MAX_CUSTOMERS = 10;
    private static double SAVINGS_RATE = 3.5;

    private Customer[] customers;
    private int        numberOfCustomers;

    public Bank() {
        customers = new Customer[MAX_CUSTOMERS];
        numberOfCustomers = 0;
    }

    public void addCustomer(String f, String l) {
        int i = numberOfCustomers++;
        customers[i] = new Customer(f, l);
    }
    public Customer getCustomer(int customer_index) {
        return customers[customer_index];
    }
    public int getNumOfCustomers() {
        return numberOfCustomers;
    }
}
